package top.timous.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {
    @RequestMapping("/index")
    public String index(){
        return "epidemic";
    }

    @CrossOrigin
    @RequestMapping("test")
    @ResponseBody
    public String Test(){
        System.out.println("dsfsdaf");
        return "sadasd";
    }
}
